package net.sapfree.common;
public class Constants 
{
	public static  String JNDI_SAPFREE = "jdbc/sapfree";
	
	/**
     * 上传文件的最大值 200M
     */
    public static final int FILE_MAX_SIZE = 200 * 1024 * 1024;
	
    /**
     * 文件上传目录
     */
	public static  String FILE_UPLOAD_PATH = "D:/SAPFREE/FILES";
	
	
	/**
     * 照片上传目录
     */
	public static  String PHOTO_UPLOAD_PATH = "D:/SAPFREE/PHOTO";
	
	/**
     * 默认照片上传目录
     */
	public static  String DEFPHOTO_UPLOAD_PATH = "D:/SAPFREE/PHOTO/default";
	
	
	/**
     * 文章中图片上传目录
     */
	public static  String ARTICLEIMAGE_UPLOAD_PATH = "D:/SAPFREE/ARTICLEIMAGE";
	
	/**
     * 文章摘要的长度
     */
	public static  int ARTICLE_CUT_LENGTH = 500;
	
	/**
     * 设置解析数据时使用临时文件的大小上限 单位字节
     */
    public static final int TMP_FILE_SIZE = 200 * 1024 * 1024;
    
    /**
     * 缓冲大小
     */
    public static final int BUFFER_SIZE = 1024;
	
    /**
     * 人员类别编码
     * **/
    public static final String USER_STUDENT = "30";
    public static final String USER_PARENT = "40";
    public static final String USER_TEACHER = "50";
    
    public static final String INVITECODE_REGIST = "2";
    public static String INVITECODE_VALID = "1";
	public static String INVITECODE_INVALID = "9";
	
	//动作代码定义
	public static String ACTION_REGIST = "regist";					//注册
	public static String ACTION_REGIST_NAME = "注册";
	public static String ACTION_PHOTO = "addphoto";					//上传头像
	public static String ACTION_PHOTO_NAME = "上传头像";
	public static String ACTION_INVITE = "invite";					//发出邀请
	public static String ACTION_INVITE_NAME = "发出邀请";
	public static String ACTION_INVITESUCCESS = "invitesuccess";	//邀请成功
	public static String ACTION_INVITESUCCESS_NAME = "成功邀请";
	
	public static String ACTION_LOGIN = "login";
	public static String ACTION_LOGIN_NAME = "登录";
	
} 






